<template>
  <div>
    <h2>我是c组件-使用props接收路由参数</h2>
    <p>params传参name: {{ name }}</p>
    <p>params传参age: {{ age }}</p>
  </div>
</template>



<script lang="ts" setup>
  import {defineProps} from "vue";

  const props = defineProps({
    name: {
      type: String
    },
    age: {
      type: String
    }
  })
</script>


<style>
</style>